from  sousuopage import SouSuoPage
from time import  sleep


class TestSouSuo():
    def setup_method(self):
        self.po = SouSuoPage()

    def teardown_method(self):
        self.po.quit_driver()
    def test_sousuo(self):
        try:
            self.po.sousuoyewu('红楼梦')
        except Exception as e:
            print("报错信息:",e)

        self.po.jieping('souusoerror.png')

        t = self.po.get_key_value(self.po.dy,'text')
        assert "相关版本在售" in t

